export const loginModel = {
    create() {
        return {
            uuid: "",
            name: "",
            token: "",
            permission: 0,
            login: false,
        }
    },
    cratePacket() {
        return {
            uuid: "",
            password: "",
        }
    },
    fromApi(data) {
        return {
            uuid: data.uuid,
            name: data.name,
            token: data.token,
            permission: data.permission,
            login: true,
        }
    }
}